package com.itheima.tanhua.vo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor

public class PageResult<T> implements Serializable {

    private Integer pages;
    private Integer pagesize;
    private Integer page;
    private Integer counts;
    private List<T> items;

    public PageResult(Integer page,Integer pagesize, List<T> items) {
        this.pagesize = pagesize;
        this.page = page;
        this.items = items;
    }
    public PageResult(Integer page,Integer pagesize, List<T> items,Integer pages,Integer counts) {
        this.pagesize = pagesize;
        this.page = page;
        this.items = items;
        this.pages=pages;
        this.counts=counts;
    }

}
